package com.example.spring.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.example.spring.dao.UserDAO;
import com.example.spring.model.User;

@Service
@Transactional
public class UserServiceImpl implements UserService{

	@Autowired  
    private UserDAO userDAO;  
  
    public List<User> getUser(String login) {  
        return userDAO.getUser(login);  
    }  
	
}
